#!/bin/bash
docker network create --subnet 172.19.0.0/16  qinglong||echo "network present"
qinglong_conf="/volume1/docker/qinglong";

docker rm --force qinglong;


docker run -dit \
    -v ${qinglong_conf}/ql/config:/ql/data/config \
    -v ${qinglong_conf}/ql/log:/ql/data/log \
    -v ${qinglong_conf}/ql/db:/ql/data/db \
    -v ${qinglong_conf}/ql/scripts:/ql/data/scripts \
    -v ${qinglong_conf}/ql/repo:/ql/data/repo \
    --net qinglong \
    -p 5700:5700 \
    --name=qinglong \
    --hostname=qinglong \
    --restart=unless-stopped \
    registry.cn-hangzhou.aliyuncs.com/siruoren/qinglong:latest



##curl -k https://gitee.com/team_space/mynet_info/raw/master/dsm_ql.sh|bash